home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
gauge
/
odomvb25
/
unit1.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-12-16
|
1KB
|
50 lines
unit Unit1;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, VBXCtrl, Odomet25, ExtCtrls;
type
TForm1 = class(TForm)
Odometer1: TOdometer;
Odometer2: TOdometer;
Odometer3: TOdometer;
ScrollBar1: TScrollBar;
Timer1: TTimer;
procedure ScrollBar1Change(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.ScrollBar1Change(Sender: TObject);
begin
Odometer1.Value := ScrollBar1.Position;
Odometer2.Value := ScrollBar1.Position;
Odometer3.Value := ScrollBar1.Position;
end;
procedure TForm1.Timer1Timer(Sender: TObject);
begin
Odometer1.Value := Odometer1.Value + 0.002;
Odometer2.Value := Odometer2.Value + 0.002;
Odometer3.Value := Odometer3.Value + 0.002;
end;
end.